﻿using Bricks.Component.Utils;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Bricks.Business.Models.SafetyManagement
{
    [Description("安全预案")]
    public class SafetyPlan : EntityBase<Guid>
    {
        public SafetyPlan()
        {
            ID = GuidHelper.NewGuid();
        }

        [Display(Name = "预案名称")]
        [StringLength(256)]
        public string PlanName { get; set; }

        [Display(Name = "发布时间")]
        public DateTime PublishTime { get; set; }  //默认取当前时间

        [Display(Name = "发布单位")]
        public Guid PublishOrgID { get; set; }  //取登录人的单位ID

        [Display(Name = "发布人")]
        public Guid PublishUserID { get; set; }  //登录人ID

        [Display(Name = "摘要说明")]
        public string AbstractDescription { get; set; }

        [Display(Name = "附件")]
        public string Attachment { get; set; }
    }
}
